package com.zw.a.basic.a07.demo07_teacher_exercise;

//子类, 基础班老师
public class BasicTeacher extends Teacher{
    //构造方法
    public BasicTeacher() {
    }

    public BasicTeacher(String name, int age) {
        super(name, age);
    }

    //重写Teacher#teach()
    @Override
    public void teach() {
        System.out.println("基础班老师讲: JavaSE");
    }
}
